﻿using Microsoft.EntityFrameworkCore;
using Sgr.BillNumbering.Infrastructure.EntityConfigurations;
using Sgr.Data;
using Sgr.EntityFrameworkCore;

namespace Sgr.BillNumbering.Infrastructure
{
    public class SequenceCounterEntityFrameworkTypeProvider : IEntityFrameworkTypeProvider
    {
        public string Name => "SGR";

        public void RegisterEntities(ModelBuilder modelBuilder, DatabaseType? databaseType)
        {
            modelBuilder.ApplyConfiguration(new SequenceCounterConfiguration());
        }
    }
}